package com.example.project.exception;

import io.swagger.annotations.ApiModelProperty;

/**
 * 自定义 鉴权的 异常
 */
public class AuthException extends RuntimeException {

    @ApiModelProperty(value = "异常状态码")
    private Integer code;

    public AuthException() {
    }

    public AuthException(Integer code, String message) {

        super(message);
        this.code = code;

    }

    public Integer getCode() {
        return code;
    }
}


